package com.ygqh.baby.mapper;

import com.ygqh.baby.ao.InformType;
import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.model.UserInformModel;
import com.ygqh.baby.po.YgInformUser;
import com.ygqh.baby.po.YgInformUserExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface YgInformUserMapper {

	int countByExample(YgInformUserExample example);

	int deleteByExample(YgInformUserExample example);

	int deleteByPrimaryKey(Long id);

	int insert(YgInformUser record);

	int insertSelective(YgInformUser record);

	List<YgInformUser> selectByExample(YgInformUserExample example);

	YgInformUser selectByPrimaryKey(Long id);

	int updateByExampleSelective(@Param("record") YgInformUser record, @Param("example") YgInformUserExample example);

	int updateByExample(@Param("record") YgInformUser record, @Param("example") YgInformUserExample example);

	int updateByPrimaryKeySelective(YgInformUser record);

	int updateByPrimaryKey(YgInformUser record);

	int countSuper(@Param("q") String q);

	List<YgInformUser> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param("q") String q);

	List<UserInformModel> selectInformList(@Param("queryInfo") QueryInfo queryInfo, @Param("userId") Long userId,
										   @Param("readStatus") Boolean readStatus);

	int updateByReadAll(@Param("userId") Long userId);

	List<UserInformModel> selectByUserId(@Param("userId") Long userId, @Param("informType") InformType informType);
}



